#pragma once
#include "ofMain.h"
#include "ofxHTTP.h"

class myNode
{
public:
	myNode();
	myNode(int imageFlame, int heardFlame,std::string nodeId, std::string updataImageURL, std::string heardURL);
	~myNode();
	bool sendImage(std::string fileName);
	bool sendHeard();


	int heardFlame = 10;
	int imageFlame = 10;
	std::string nodeId="86";
	std::string accessToken = "ACCESS_TOKEN";
	std::string updataImageURL = "http://localhost:8080/wsn640/pestData/baseUtil/uploadImage";
	std::string heardURL = "http://localhost:8080/wsn640/pestData/baseUtil/heardPost";
	ofx::HTTP::DefaultClient client;
	ofx::HTTP::Context context;
	ofx::HTTP::BaseResponse response;
	ofx::HTTP::PostRequest *imagePostRequest=NULL;
	ofx::HTTP::PostRequest *heardPostRequest;
	bool flagHeard = false;
	bool flagImage = false;
	

};